import request from '@/utils/request'

// 查询质量检验记录列表
export function listQualityCheckInfo(query) {
  return request({
    url: '/business/qualityCheckInfo/list',
    method: 'get',
    params: query
  })
}

// 查询质量检验记录详细
export function getQualityCheckInfo(id) {
  return request({
    url: '/business/qualityCheckInfo/' + id,
    method: 'get'
  })
}

// 新增质量检验记录
export function addQualityCheckInfo(data) {
  return request({
    url: '/business/qualityCheckInfo',
    method: 'post',
    data: data
  })
}

// 修改质量检验记录
export function updateQualityCheckInfo(data) {
  return request({
    url: '/business/qualityCheckInfo',
    method: 'put',
    data: data
  })
}

// 删除质量检验记录
export function delQualityCheckInfo(id) {
  return request({
    url: '/business/qualityCheckInfo/' + id,
    method: 'delete'
  })
}
